package com.waltercedric.java.joomla.gridupdater;

import com.waltercedric.java.joomla.gridupdater.protocol.SiteConnector;

public class JoomlaDetector {

  private SiteConnector siteConnector;
  
  
  private static final String VERSION_FILE = "librairies\\joomla\\version.php";
  
  private static final String regexpRelease = " $RELEASE = = '1.5';";
  private static final String regexpDevLevel = " $DEV_LEVEL = = '20';";
  
  public JoomlaDetector(SiteConnector siteConnector) {
    super();
    this.setSiteConnector(siteConnector);
  }

  public int getPatchVersion() {
    // TODO
    return 20;
  }

  public double getMainVersion() {
    // TODO
    return 1.5;
  }

  public void setSiteConnector(SiteConnector siteConnector) {
    this.siteConnector = siteConnector;
  }

  public SiteConnector getSiteConnector() {
    return siteConnector;
  }

}
